package com.lby.redisdemo.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * @ClassName MessageBean
 * @Description TODO
 * @Author louby0923
 * @Date 2023/5/30 10:58
 * @Version 1.0
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor


public class MessageBean {
    @Id()
    private String id;

    private String channel;

    private String msg;

    @CreatedDate
    private Date createdDate;

}
